﻿




using System.Web;
using System.Web.Routing;
using Hotpot.Modules.Conferences.Models;

namespace Hotpot.Modules.Conferences.Routing
{
    public class IsScheduleItemFilterCriteria : IRouteConstraint
    {
        public bool Match(HttpContextBase httpContext, Route route, string parameterName, RouteValueDictionary values, RouteDirection routeDirection)
        {
            return values[parameterName] as string != null && (new ScheduleItemFilterCriteria(values[parameterName].ToString())).HasCriteria();
        }
    }
}